/**
 * 内容管理模块API
 */
const http = uni.$u.http

// 意见反馈
export const feedback = (data) => http.post('/client/cms/feedback', data, {
	custom: {
		auth: true,
	},
})

// 意见反馈列表
export const feedbackList = (data) => http.get('/client/cms/feedback/list', {
	custom: {
		auth: true,
	},
})

// 意见反馈详情
export const feedbackDetail = (data) => http.get('/client/cms/feedback/detail', {
	params: data,
	custom: {
		auth: true,
	},
})

// 意见反馈删除
export const feedbackDel = (data) => http.get('/client/cms/feedback/del', {
	params: data,
	custom: {
		auth: true,
	},
})

// 平台文档详情
export const docInfo = (data) => http.get('/client/cms/doc/info', {
	params: data,
	custom: {
		auth: false,
	},
})

// 帮助文档分类详情
export const helpCategory = (data) => http.get('/client/cms/help/category', {
	params: data,
	custom: {
		auth: false,
	},
})

// 帮助文档列表
export const helpList = (data) => http.get('/client/cms/help/list', {
	params: data,
	custom: {
		auth: false,
	},
})

// 帮助文档详情
export const helpDetail = (data) => http.get('/client/cms/help/detail', {
	params: data,
	custom: {
		auth: false,
	},
})

// 文章分类
export const articleCategory = (data) => http.get('/client/cms/article/category', {
	params: data,
	custom: {
		auth: false,
	},
})

// 文章分类
export const articleList = (data) => http.get('/client/cms/article/list', {
	params: data,
	custom: {
		auth: false,
	},
})

// 文章详情
export const articleDetail = (data) => http.get('/client/cms/article/detail', {
	params: data,
	custom: {
		auth: false,
	},
})
